package ee.karileet.productcatalogue.dao;
import ee.karileet.productcatalogue.model.User;

/**
 * @author Markus Karileet
 * @version 1.0
 * @created 29-nov-2013 16:09:21
 */
public interface IUserHome {

	/**
	 * 
	 * @param user    user
	 */
	public void attachClean(User user);

	/**
	 * 
	 * @param product    product
	 */
	public void attachDirty(User product);

	/**
	 * 
	 * @param user    user
	 */
	public void delete(User user);

	/**
	 * 
	 * @param expressions    expressions
	 */
	public java.util.List<User> find(java.util.List<org.hibernate.criterion.SimpleExpression> expressions);

	public java.util.List<User> findAll();

	/**
	 * 
	 * @param user    user
	 */
	public java.util.List<User> findByExample(User user);

	/**
	 * 
	 * @param id    id
	 */
	public User findById(int id);

	/**
	 * 
	 * @param user    user
	 */
	public User merge(User user);

	/**
	 * 
	 * @param user    user
	 */
	public void persist(User user);

	public void save(User user);
}